package com.ruicar.afs.cloud.channel.mange.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author xudongdong
 * @date 2020-06-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("channel_user_appertain")
public class ChannelUserAppertain extends Model<ChannelUserAppertain> {
    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 所属区域ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long appertainRegionId;
}
